WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 250
Dependencies 33
Dependents 2
Total lines 1,737
Lines of code 1,011
Logical lines of code 431
Comment lines 483
Methods 49
Properties 21

Methods 49

Method Rating Maintainability Complexity Lines of code
url_params()
D
32 33 87
message_values()
B
38 21 61
script_data()
B
27
12 174
render_wrapper()
B
35 17 95
render_button_wrapper_registrar()
B
39 17 71
render_message_wrapper_registrar()
A
42 13 54
should_load_messages()
A
53 11 22
should_load_buttons()
A
55 10 20
style_for_context()
A
51 8 25
dcc_is_enabled()
S
57 6 19
should_load_ppcp_script()
S
63 6 10
can_render_dcc()
S
69 6 6
product_filter_context_data()
S
61 5 12
sanitize_woocommerce_filters()
S
59 4 15
can_save_vault_token()
S
66 5 9
components()
S
60 4 14
message_renderer()
S
59 4 14
get_vaulted_paypal_email()
S
60 4 13
has_subscriptions()
S
63 4 12
is_button_disabled()
S
59 3 17
dcc_renderer()
S
58 3 16
intent()
S
65 4 8
button_renderer()
S
58 3 15
enqueue()
S
53 2 28
product_supports_payment()
S
61 3 12
pay_now_script_data()
S
57 2 17
payerData()
S
68 3 7
get_3ds_contingency()
S
67 3 9
normalize_height()
S
68 3 9
has_in_stock_variation()
S
68 3 8
is_pay_later_filter_enabled_for_location()
S
61 2 14
__construct()
S
53 1 22
location_to_hook()
S
69 2 8
is_pay_later_messaging_enabled_for_location()
S
75 2 4
paypal_subscriptions_enabled()
S
67 2 8
get_order_pay_id()
S
68 2 7
bn_code_for_context()
S
74 2 4
get_payment_tokens()
S
71 2 6
is_pay_later_button_enabled_for_location()
S
75 2 4
messages_renderer_hook()
S
59 1 15
is_cart_price_total_zero()
S
78 2 3
checkout_button_renderer_hook()
S
79 1 3
mini_cart_button_renderer_hook()
S
72 1 6
checkout_dcc_button_renderer_hook()
S
79 1 3
pay_order_renderer_hook()
S
79 1 3
bn_codes()
S
68 1 8
attributes()
S
74 1 5
single_product_renderer_hook()
S
79 1 3
proceed_to_checkout_button_renderer_hook()
S
72 1 6